package org.shop.service;

import java.util.List;

import org.shop.entity.Address;
import org.shop.service.base.BaseService;

public interface AddressService extends BaseService<Address, Long>{
	/**
	 * 获取所有地址
	 * @return
	 */
	public List<Address> getAddressList(Long userId);
	/**
	 * 获取所有地址
	 * @return
	 */
	public Long updateDefaultAddress(Long userId);
	
	/**
	 * 根据userId 获取个人地址
	 * @param userId
	 * @return
	 */
	public Address getPersonDefaultAddress(Long userId);
}
